package com.dragon.www.haier.util;

/**
 * Created by liqp on 2016/10/31.
 */
public class TimeUtil {

    public static String getDistanceTime(long  time1,long time2 ) {
        long day = 0;
        long diff ;
        if(time1>time2) {
            return "软件未过期";
        } else {
            diff = time2 - time1;
        }
        day = diff / (24 * 60 * 60 * 1000);
        if (day > 90){
            return "软件过期";
        }else{
            return "软件未过期";
        }
    }
}
